package com.example.module_motorcircle

import android.app.Application
import com.alibaba.android.arouter.launcher.ARouter
import com.example.lib_storage.AuthMMKV
import com.tencent.mmkv.MMKV
import dagger.hilt.android.HiltAndroidApp

/**
 * @author yaotianxue
 * @description
 * @date 2025/2/11
 */
@HiltAndroidApp
class App:Application() {
    override fun onCreate() {
        super.onCreate()
        MMKV.initialize(this)
        //测试写死token
        AuthMMKV.token = "eyJhbGciOiJIUzUxMiJ9.eyJ0b2tlbkJyYW5kRW5kTmFtZSI6IuS_seS5kOmDqCIsInJlZnJlc2hfbnVtIjozLCJ0b2tlbkxvZ2luTmFtZSI6Ik1DMjAyNDA4MjMxNjI1MDYwNDYzMzg3NCIsInRva2VuQXBwSWQiOiIyNDAxMTExNTQzNDFCNDg2MDU3MSIsInRva2VuVXNlcklkIjoyMzY2OTEsImNyZWF0ZSI6MTczOTQxMTYyMzQ3MiwidG9rZW5Vc2VyTmFtZSI6IjE4NjMwNzA0NTc5IiwidG9rZW5Nb2JpbGUiOiIxODYzMDcwNDU3OSIsImV4cCI6MTc3MDk0NzYyMywidG9rZW5CcmFuZEVuZENvZGUiOiJjbHViIiwidG9rZW5Vc2VyQ29kZSI6Ik1DMjAyNDA4MjMxNjI1MDYwNDYzMzg3NCIsInRva2VuQXBwQ29kZSI6ImNfY2x1Yl9zZXJ2ZXIifQ.I6U0fFdElvnu2GPqBqid7tQEkkKVvRm89mo6Etm5PWd4gco8U8hrr8moLzTUcmoCcZHLCmMCYx77mPWf-_1zYQ"
        ARouter.openLog()
        ARouter.openDebug()
        ARouter.init(this)
    }
}